#include "widget.h"
#include "./ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->cameraBtn->setText("Camera1");
    ui->mapBtn->setText("MapPage");
}

Widget::~Widget()
{
    delete ui;
}

// 主页摄像头按钮点击打开摄像头界面
void Widget::on_cameraBtn_clicked()
{
    emit jumpToCameraWin();
}

//切换到地图页面
void Widget::on_mapBtn_clicked()
{
    emit jumpToMapWin();
}
